package net.wsfcp.android.bean.requestbean;

import android.support.annotation.NonNull;

import net.wsfcp.android.utils.CommonUtils;

//请求登录
public class ReqLoginBean {
    private String user_name;//用户名
    private String pwd;//密码  如果首次登录密码需要加密，自动登陆直接传密码串
    private String verify_code;//图形验证码
    private String device_id;//设备id
    private int is_first;//是否首次登录 1是 0自动登录


    //用户名密码登录
    public ReqLoginBean(@NonNull String username, @NonNull String pwd, @NonNull String code) {
        this.user_name = username;
        this.pwd = pwd;
        this.verify_code = code;
        this.device_id = CommonUtils.getPhoneId();
        this.is_first = 1;
    }

    //自动登陆
    public ReqLoginBean(@NonNull String username, @NonNull String pwd) {
        this.user_name = username;
        this.pwd = pwd;
        this.device_id = CommonUtils.getPhoneId();
        this.is_first = 0;
    }


    public String getDevice_id() {
        return device_id;
    }

    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }

    public int getIs_first() {
        return is_first;
    }

    public void setIs_first(int is_first) {
        this.is_first = is_first;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getVerify_code() {
        return verify_code;
    }

    public void setVerify_code(String verify_code) {
        this.verify_code = verify_code;
    }
}
